import { Component, Sprite, _decorator } from 'cc';
import Res from '../base/ResMgr';
const { ccclass, property, requireComponent } = _decorator;

@ccclass('RemoteSprite')
@requireComponent(Sprite)
export default class RemoteSprite extends Component {

    public load(path: string) {
        Res.setRemoteSpriteFrame(this.getComponent(Sprite)!, path);
    }

}